package com.dao;

import com.entity.Tops;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuronghua
 * @version 1.0
 * @data 2020-09-2020/9/24 10:18
 * @desc
 */
public interface TopsDao {
    @Select("select good_id from tops where type=#{type}")
    public List<String> selectGoodIdByType(byte type);

    @Select("select * from tops where good_id=#{goodId} and type=#{type}")
    public Tops selctByGoodIdAndType(@Param("goodId")int goodId,@Param("type") byte type);

}
